package lzyc.pointsManagement.business.attachment.mapper;


import lzyc.pointsManagement.business.attachment.domain.Attachments;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author liuyuan
* @description 针对表【attachments】的数据库操作Mapper
* @createDate 2024-03-09 21:19:29
* @Entity .domain.Attachments
*/
@Mapper
public interface AttachmentsMapper {
    Attachments selectAttachmentsById(@Param("id") String id);
    List<Attachments> selectAttachmentsList();
    void addAttachments(Attachments attachments);
    void updateAttachments(Attachments attachments);
    void deleteAttachments(@Param("id") String id);
    int countAttachmentsList();
    Attachments selectAttachmentsByName(@Param("name") String name);
    Attachments selectAttachmentsByPath(@Param("path") String path);
    List<Attachments> selectAttachmentsByType(@Param("type") String type);

    List<Attachments> selectAttachmentsByIds(@Param("ids") List<String> ids);

    void batchUpdateAttachments(List<Attachments> attachmentsList);

    List<Attachments> selectAttachmentByIds(@Param("ids") List<String> ids);

    List<Attachments> selectAttachmentByBizId(@Param("bizId") String bizId);

    void updateBizId(@Param("bizId") String bizId, @Param("id") String id);
}




